package com.googlecode.openauth.web.service;

import java.util.List;

import com.googlecode.openauth.web.dao.IUserDao;
import com.googlecode.openauth.web.entity.UserInfo;

public class UserServiceImpl implements UserService {
	
	//注入影片Mapper 
    private IUserDao mapper;  
      
    public void insertUser(UserInfo user) {  
        mapper.insertUser(user);                  
    }  
  
    public void deleteUser(int userId) {  
        mapper.deleteUser(userId);  
    }  
  
    public void updateUser(UserInfo user) {  
        mapper.updateUser(user);  
    }  
    
    public UserInfo getUserById(int userId) {  
        return mapper.getUserById(userId);  
    }  
      
    public List<UserInfo> getAllUser() {  
        return null;  
    }

	public void setMapper(IUserDao mapper) {
		this.mapper = mapper;
	}  
}
